<?php
// +----------------------------------------------------------------------
// | WoShiMaiJia Projcet
// +----------------------------------------------------------------------
// | Copyright (c) 2010 http://woshimaijia.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: xinqiyang <517577550@qq.com>
// +----------------------------------------------------------------------
/**
 * 用户群组关联表
 * @author xinqiyang
 * @date   2010-7-9
 *
 */

class UserandgroupModel extends MetaModel
{


//	protected $_validate  = array(
//	array ('msg','require','说明不能为空',0,'',1),
//	array ('refereeid','require','邀请人ID不能为空',0,'',1),
//	array ('group_id','require','不能为空',1,'',1),
//	);


	protected $_auto = array(
	array ('status','1'),
	array ('createtime','time',1,'function'),
	array ('user_id','userID',1,'function'),



	);
	//dump view model
	//public $viewFields = array(

	//'userandgroup'=>array(
	//'id',//'msg',//'status',//'createtime',//'refereeid',//'user_id',//'group_id',//'_on'=>'  '),
	//);
}
?>